﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;

namespace BLL
{
    public class LoginBLL
    {
        LoginDAL ld = new LoginDAL();
        //验证管理员账号密码
        public bool verifyUser(string username,string password)
        {
            int i = ld.verify(username,password);
            if (i > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        /// <summary>
        /// 检查系统版本为脱机还是联机
        /// </summary>
        public bool IsOnline()
        {
            int i = ld.isOnline();
            if (i == 1)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}
